package com.wxg.controller;

import com.jfinal.core.Controller;

public class IndexController extends Controller{

	
	public void index(){
		renderJsp("index.jsp");
	}
	
	public void isChangeColor(){
		boolean flag = false;
		String who = getPara("who");
		System.out.printf("who: %s\n", who);
		if("left".equals(who)){
			flag = true;
		}else if("right".equals(who)){
			flag = false;
		}
		renderJson(flag);
	}
}
